package com.muyu.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 书画市场收藏对象 danmo_market_collect
 *
 * @author yangle
 * @date 2024-09-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class DanmoMarketCollect extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    private Integer pageNum = 1;
    private Integer pageSize = 10;

    /** id */
    private Long id;

    /** 用户id */
    @Excel(name = "信息id")
    private Long informationId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;
    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 标记收藏是否有效（例如，用户可能取消收藏） */
    @Excel(name = "标记收藏是否有效", readConverterExp = "例=如，用户可能取消收藏")
    private String isActive;

    /** 添加收藏的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加收藏的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date favoriteTime;


    private DanmoMarketProducts danmoMarketProducts;



//    public void setId(Long id)
//    {
//        this.id = id;
//    }
//
//    public Long getId()
//    {
//        return id;
//    }
//    public void setInformationId(Long informationId)
//    {
//        this.informationId = informationId;
//    }
//
//    public Long getInformationId()
//    {
//        return informationId;
//    }
//    public void setProductId(Long productId)
//    {
//        this.productId = productId;
//    }
//
//    public Long getProductId()
//    {
//        return productId;
//    }
//    public void setIsActive(String isActive)
//    {
//        this.isActive = isActive;
//    }
//
//    public String getIsActive()
//    {
//        return isActive;
//    }
//    public void setFavoriteTime(Date favoriteTime)
//    {
//        this.favoriteTime = favoriteTime;
//    }
//
//    public Date getFavoriteTime()
//    {
//        return favoriteTime;
//    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("informationId", getInformationId())
            .append("productId", getProductId())
            .append("isActive", getIsActive())
            .append("favoriteTime", getFavoriteTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
